package EVO;

import EVO.afterReturning.SomeService;
import EVO.afterReturning.Student;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MyTest02 {
    @Test
    public void test01(){
        ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml");
        SomeService someService = (SomeService)ac.getBean("someService");
        //String str = someService.doOther("jojo",20);
        //System.out.println("stu: "+ str);
        Student stu = someService.doOther2("jojo",20);
        System.out.println("stu: "+ stu);
    }
}
